﻿#ifndef __IMMENSEENGINE_STRING_H
#define __IMMENSEENGINE_STRING_H
#pragma once

/*  1. D E F I N E S
	=========================================================================== */

#define MAX_STRING_LENGTH			1024


/*  2. F U N C T I O N
	=========================================================================== */

// Hmm, should I go over to namespace?
size_t strlenght( const char *string );
void strreplace( char *string, char oldchar, char newchar );
void strcopy( char *destin, char *source, size_t maxlength );
int strcompare( const char *string1, const char *string2 );
int strcomparechars( const char *string1, const char *string2, int n );
int strtoint( const char *string );
float strtofloat( const char *string );
const char *strvarargs( const char *buffer, ... );
char *strfindchar( const char *string, int c );
char *strfindcharrev( const char *string, int c );
int strsprintf( char *destin, int maxlengthgth, const char *buffer, ... );
int strvsprintf( char *destin, int maxlengthgth, const char *buffer, va_list argPtr );
const char *strfromfloat( float value, int precision );

#endif // __IMMENSEENGINE_STRING_H